namespace Cos.Core.NHibernate
{
    public class FormPageDataModel
    {
        public virtual int FormId { get; set; }

        //public virtual IEnumerable<FormElementDataModel> FormElements { get; set; }

        //public virtual IEnumerable<FormPageCultureDataModel> FormPageCultures { get; set; }

        public virtual int Id { get; set; }

        public virtual bool IsDeleted { get; set; }

        public virtual int Ordering { get; set; }

        public override bool Equals(object obj)
        {
            if (obj == null)
            {
                return false;
            }

            var model = obj as FormPageDataModel;

            return model != null && this.Id == model.Id;
        }

        public override int GetHashCode()
        {
            return this.Id.GetHashCode();
        }
    }
}
